package com.yz.mcd.view;

import android.app.Activity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import com.yz.mcd.R;

/**
 * 四个标签页的基本类
 *
 * Created by Maverick on 2017/4/26.
 */

public class BasePager {

    public Activity mActivity;

    public TextView tvTitle;
    public ImageView btnMenu;
    public FrameLayout flContent;//空的帧布局对象，要动态添加布局
    public View mRootView;//当前文件的布局文件对象

    public BasePager(Activity activity){
        mActivity = activity;

        mRootView = initView();
    }

    //初始化布局
    public View initView(){
        View view = View.inflate(mActivity, R.layout.base_pager, null);
        tvTitle = (TextView) view.findViewById(R.id.tv_title);
        btnMenu = (ImageView) view.findViewById(R.id.iv_btn_menu);
        flContent = (FrameLayout) view.findViewById(R.id.fl_content);

        return view;
    }

    //初始化数据
    public void initData(){

    }
}
